﻿using System.Data;
using LibDataLayer;

namespace LibBusinessLayer
{
    public class BllAdv
    {
        #region[Get-Data]
        public DataTable GetAdv()
        {
            return DalAdv.GetAdv();
        }
        public DataTable GetAdvEdit(int id)
        {
            return DalAdv.GetAdvEdit(id);
        }
        public DataTable GetAdvFillterStatus(int IsActive)
        {
            return DalAdv.GetAdvFillterStatus(IsActive);
        }
        public DataTable GetAdvFillterPosition(string Position)
        {
            return DalAdv.GetAdvFillterPosition(Position);
        }
        #endregion

        #region[Insert-Update-Delete]
        public static bool Insert(DTOAdv obj)
        {
            return DalAdv.Insert(obj);
        }
        public static bool Update(DTOAdv obj)
        {
            return DalAdv.Update(obj);
        }
        public static bool Delete(DTOAdv obj)
        {
            return DalAdv.Delete(obj);
        }
        public static bool UpdateNum(DTOAdv obj)
        {
            return DalAdv.UpdateNum(obj);
        }
        public static bool UpdateCheck(DTOAdv obj)
        {
            return DalAdv.UpdateCheck(obj);
        }
        #endregion
        
        #region[Get-Data-HomePage]
        public DataTable GeAdvHomePage(string Position)
        {
            return DalAdv.GeAdvHomePage(Position);
        }
        #endregion
    }
}